/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.category.entity;

import org.hibernate.validator.constraints.Length;
//import org.hibernate.validator.constraints.Length(min=0, max=2, message="分类类型;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 类别管理Entity
 * @author 李云涛
 * @version 2017-09-02
 */
public class WxCategory extends DataEntity<WxCategory> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 类目名
	private String type;		// 分类类型(1:行业,2:分类)
	
	public WxCategory() {
		super();
	}

	public WxCategory(String id){
		super(id);
	}

	@Length(min=0, max=10, message="类目名长度必须介于 0 和 10 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=2, message="分类类型(1:行业,2:分类)长度必须介于 0 和 2 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
}